import request from '@/utils/request'

export function getAllOrg(){
    return request({
        url: "/getallorg",
        method: "get"
    })
}

// 添加用户
export function sysAddUSer(data){
    return request({
        url: "/adduser",
        method: "post",
        data:data
    })
}

// 查询所有用户
export function getAllUser(data){
    return request({
        url: "/get/allUser/" + data,
        method: "get"
    })
}

// 删除用户
export function deleteUser(data){
    return request({
        url: "/deleteuser/" + data,
        method: "get",
    })
}

// 重置别人的密码
export function reqResetPassword(data){
    return request({
        url: "/reset/userPwd",
        method: "post",
        data:data
    })
}

// 条件查询用户
export function reqConditionSer(pagInfo,data){
    return request({
        url: "/query/byOption/"+pagInfo,
        method:"post",
        data: data
    })
}
